bin_PROGRAMS = GiTMchat

# TODO:  write this Makefile.am
GiTMchat_MOC = \
	@top_srcdir@/src/bot/bot.moc.cpp \
	@top_srcdir@/src/conGuy/conGuy.moc.cpp \
	@top_srcdir@/src/gui/ChatDialog.moc.cpp \
	@top_srcdir@/src/gui/SettingsDialog.moc.cpp

GiTMchat_SOURCES = \
	@top_srcdir@/src/authGuy/authGuy.cpp \
	@top_srcdir@/src/authGuy/authGuy.h \
	@top_srcdir@/src/bot/bot.cpp \
	@top_srcdir@/src/bot/bot.h \
	@top_srcdir@/src/conGuy/buff.cpp \
	@top_srcdir@/src/conGuy/buff.h \
	@top_srcdir@/src/conGuy/conGuy.cpp \
	@top_srcdir@/src/conGuy/conGuy.h \
	@top_srcdir@/src/conGuy/types.h \
	@top_srcdir@/src/event/BnetEvent.cpp \
	@top_srcdir@/src/event/BnetEvent.h \
	@top_srcdir@/src/gui/ChatDialog.cpp \
	@top_srcdir@/src/gui/ChatDialog.h \
	@top_srcdir@/src/gui/SettingsDialog.cpp \
	@top_srcdir@/src/gui/SettingsDialog.h \
	@top_srcdir@/src/parser/parser.cpp \
	@top_srcdir@/src/parser/parser.h \
	@top_srcdir@/src/main.cpp \
	$(GiTMchat_MOC)

GiTMchat_LDADD = \
	$(QT_LDADD)

INCLUDES = \
	$(QT_CXXFLAGS) \
	-I@top_srcdir@ \
	-I@top_srcdir@/src \
	-I@top_srcdir@/src/authGuy \
	-I@top_srcdir@/src/bot \
	-I@top_srcdir@/src/conGuy \
	-I@top_srcdir@/src/event \
	-I@top_srcdir@/src/gui \
	-I@top_srcdir@/src/parser

# Add Qt support.
%.moc.cpp: %.h
	$(MOC) -o $@ $<
%.h: %.ui
	$(UIC) -o $@ $<
%.cpp: %.ui
	$(UIC) -o $@ -impl $*.h $<
